<?php

namespace App\Http\Controllers\DingTalk;

use App\Http\Controllers\Controller;
use App\Models\DingTalkRole;

class DingTalkRoleController extends Controller
{
    public function index()
    {
        if (post('?')) {

            return (DingTalkRole::relatedJoin()->getGrid());
        } else {
            $param = F();
            // $param['categroy'] = $this->CategoryAll();
            return view('BaseData.DingTalkRoleController.index',  $param);
        }
    }
}
